//JavaScript Framework 2.0 Code
try {
	Type.registerNamespace('com.yonyou.ncmm_pac_pda.FPInScanListPageController');
	com.yonyou.ncmm_pac_pda.FPInScanListPageController = function() {
		com.yonyou.ncmm_pac_pda.FPInScanListPageController.initializeBase(this);
		this.initialize();
	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$initialize() {
		//you can programing by $ctx API
		//get the context data through $ctx.get()
		//set the context data through $ctx.push(json)
		//set the field of the context through $ctx.put(fieldName, fieldValue)
		//get the parameter of the context through $ctx.param(parameterName)
		//Demo Code:
		//    var str = $ctx.getString();      //获取当前Context对应的字符串
		//    alert($ctx.getString())          //alert当前Context对应的字符串
		//    var json = $ctx.getJSONObject(); //获取当前Context，返回值为json
		//    json["x"] = "a";        //为当前json增加字段
		//    json["y"] = [];           //为当前json增加数组
		//    $ctx.push(json);            //设置context，并自动调用数据绑定
		//
		//    put方法需手动调用databind()
		//    var x = $ctx.get("x");    //获取x字段值
		//    $ctx.put("x", "b");     //设置x字段值
		//    $ctx.put("x", "b");     //设置x字段值
		//    $ctx.databind();            //调用数据绑定才能将修改的字段绑定到控件上
		//    var p1 = $param.getString("p1");   //获取参数p2的值，返回一个字符串
		//    var p2 = $param.getJSONObject("p2");   //获取参数p3的值，返回一个JSON对象
		//    var p3 = $param.getJSONArray("p3");   //获取参数p1的值，返回一个数组

		//your initialize code below...

	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$evaljs(js) {
		eval(js)
	}

	var popDialogInfoForScan = {
		"viewid": "panel11", //显示的控件的id，通常是一个容器控件div
		// "animation-direction" : "bottom", //top | bottom | left | right,弹出的方向
		"popgravity": "popbottom", //popcenter|poptop|popbottom|popleft|popright,弹出后最终显示的位置
		// istouch : 'false'
	};

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$imagebutton0_onclick(sender, args) {
		// 点击按钮弹出浮动菜单
		$menu.openDropDownList({
			"controlid": "imagebutton0",
			"dropDownListWidth": "100", //菜单项的宽度
			"background": "#f2f2f2",
			//"background-image":"app.png",
			"color": "#ee4311",
			"font-size": "12",
			"halign": "center", //right  center
			"split-color": "#ee4311",
			//"margin-left":"10",
			"panelstyle": "round-div",
			"border-color": "#ee4311",
			"dropItemsArray": [{
				"name": "主界面",
				"action": "menu1_click()"
			}, {
				"name": "数据管理",
				"action": "menu2_click()"
			}, {
				"name": "业务设置",
				"action": "menu3_click()"
			}, {
				"name": "注销",
				"action": "menu4_click()"
			}]
		})
	}

	function menu1_click() {
		// 跳转到主界面
		$view.open({
			viewid: "com.yonyou.ncmm_pac_pda.HomePage",
			isKeep: "false"
		})
	}

	function menu2_click() {
		// 跳转到数据管理界面
		$view.open({
			viewid: "com.yonyou.ncmm_pac_pda.DM_main",
			isKeep: "false"
		})
	}

	function menu3_click() {
		// 跳转到业务设置界面
		$view.open({
			viewid: "com.yonyou.ncmm_pac_pda.BusinessSettingPage",
			isKeep: "false"
		})
	}

	function menu4_click() {
		// 跳转到登录界面
		$view.open({
			viewid: "com.yonyou.ncmm_pac_pda.LoginPage",
			isKeep: "false"
		})
	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$onload(sender, args) {
		// onloadControlForScanlist();
		var json = {};
		if($cache.read("isfinprodincreated") == "true") {
			var condition = "order by vbillcode , rowno";
			NCMMPubUtil.queryVO(FINPRODINSCANVO, condition, function(data) {
				if(data == null || data == "" || data.length == 0) {
					return;
				}
				json = {
					list: eval(data)
				}
			});
		}
		//---Begin--处理扫描记录列表界面的精度--
		//$alert("产成品入库单扫描记录");
		//$alert(json);
		var numkeys = new Array("scansinglenum");
		FINPRODINUtil.processScale(json.list, numkeys, "pk_measdoc");
		//---End-----------
		$ctx.push(json);
		//NCMMPubUtil.notifyFilter("search0", "wlistviewdefine0", ["vbillcode", "cinvname", "scansinglenum", "nshouldinnum", "nshouldassistnum"]);
	}

	function onloadControlForScanlist() {
		var rightflipperForScanlist = [{
			"halign": "center",
			"text-align": "right",
			"width": "70",
			"icon-width": "12",
			"istogglebutton": "false",
			"font-pressed-color": "#ffffff",
			"icon-height": "12",
			"height": "59",
			"color": "#ffffff",
			"layout-type": "linear",
			"background": "#FF615A",
			"font-size": "12",
			"value": "删除",
			"font-family": "default",
			"valign": "center",
			"checked": "false",
			"icon-text-spacing": "8",
			"onclick": "onItemDelete()"
		}, {
			"halign": "center",
			"text-align": "right",
			"width": "70",
			"icon-width": "12",
			"istogglebutton": "false",
			"font-pressed-color": "#ffffff",
			"icon-height": "12",
			"height": "59",
			"color": "#ffffff",
			"layout-type": "linear",
			"background": "#00ff40",
			"font-size": "12",
			"value": "修改",
			"font-family": "default",
			"valign": "center",
			"checked": "false",
			"icon-text-spacing": "8",
			"onclick": "onItemUpdate()"
		}];
		$id("wlistviewdefine0").set("slidingitems", rightflipperForScanlist);
	}

	// 列表项左划删除事件
	function onItemDelete() {
		if($confirm("确认要删除当前行数据么？")) {
			var row = $id("wlistviewdefine0").get("row");
			deleteRow($stringToJSON(row));
		}
	}

	function deleteRow(row) {
		// 从本地数据删除，然后重新查询数据进行加载
		NCMMPubUtil.deleteVO(FINPRODINSCANVO, row);
		// 更新产成品入库单增加扫描数量
		FINPRODINUtil.updateScanNumForList(row["pkitem"]);
		queryScanDataFromLocalDB();
	}

	// 列表项左划修改事件
	function onItemUpdate() {
		if($confirm("确认要修改当前行数据么？")) {
			var row = $id("wlistviewdefine0").get("row");
			$view.open({
				viewid: "com.yonyou.ncmm_pac_pda.FPInScanPage",
				isKeep: "true",
				"row": row
			})

		}
	}

	// 从本地数据库查询数据进行页面加载
	function queryScanDataFromLocalDB() {
		loadscanRecord();
		//NCMMPubUtil.queryVOByConditions(FINPRODINSCANVO, null, function(data) {
		//var json = {
		//	list: eval(data)
		//};
		//处理精度
		//var numkeys = new Array("scansinglenum");
		//FINPRODINUtil.processScale(json.list, numkeys, "pk_measdoc");
		//$ctx.push(json);
		//});
		//NCMMPubUtil.notifyFilter("search0", "wlistviewdefine0", ["vbillcode", "cinvname", "nshouldinnum", "nshouldassistnum", "scansinglenum"]);
	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$button2_onclick(sender, args) {
		$ctx.dataCollect();
		var sourceData = $ctx.getJSONArray("source");
		var recordselected = false;
		var selectrecords = [];
		for(var i = 0; i < sourceData.length; i++) {
			if(sourceData[i]["isgroupchecked"] == null || sourceData[i]["isgroupchecked"] == false || sourceData[i]["isgroupchecked"] == "false") {
				continue;
			}
			var rowdatas = sourceData[i]["row"];
			if(rowdatas== null || rowdatas == "" || rowdatas=="[]"){
			   continue;
			}
			//TODO查询下来源单据，如果来源单据为空则不进行提交
			recordselected = true;
			for(var j = 0; j < rowdatas.length; j++) {
				selectrecords.push(rowdatas[j]);
			}
		}
		// 先检查要提交的数据
		//var selectrecords = [];
		//var selectcount = 0;
		//var list = $ctx.getJSONArray("list");
		//for(var i = 0; i < list.length; i++) {
		//	if(list[i]["ischecked"] != null && (list[i]["ischecked"] == "true" || list[i]["ischecked"] == true)) {
		//		selectcount++;
		//		selectrecords.push(list[i]);
		//	}
		//}
		//if(selectcount == 0) {
		//	$toast("当前没有可提交的数据，请重新选择");
		//	return;
		//}
		if(recordselected == false) {
			$toast("当前没有可提交的数据，请重新选择");
			return;
		}
		// 检查相同pkitem的数据是不是还存在扫描记录，要一起合并提交
		//for(var m = 0; m < selectrecords.length; m++) {
		//for(var n = 0; n < list.length; n++) {
		// 不是同一条数据，但是pkitem相同(是否要拼物料？),ischecked不是true
		//if(selectrecords[m]["pkscan"] != list[n]["pkscan"] && selectrecords[m]["pkitem"] == list[n]["pkitem"] && (list[n]["ischecked"] != "true" && list[n]["ischecked"] != true)) {
		//	$alert("当前扫描记录还存在相同来源的扫描记录，请一起提交！");
		//	return;
		//}
		//}
		//}
		$js.showLoadingBar({
			msg: "正在提交数据..."
		});
		// 提交
		NCMMDBUtil.testNCConnection(function(data) {
			if(data == false || data == "false") {
			$js.hideLoadingBar();
				$toast("连接服务器失败，无法提交！");
				return;
			}
			// 连接成功开始提交
			// $js.showLoadingBar();
			// 组装数据
			var billinfos = changeVOTOBillInfos(selectrecords);
			// 提交数据
			//$alert(billinfos);
			NCMMDBUtil.submitLocaldataToNC("46save", billinfos, function(data) {
				if(data == null || data == "") {
				$js.hideLoadingBar();
					$alert("上传数据失败，请检查");
				} else {
					if(data.return != null && data.return != "") {
						if(data.return.returnFlag == 1) {
							// 返回成功，说明提交成功
							// 删除本地扫描数据
							// $js.hideLoadingBar();
							for(var index = 0; index < selectrecords.length; index++) {
								NCMMPubUtil.deleteVO(FINPRODINSCANVO, selectrecords[index]);
								condition = {
									"pkitem": selectrecords[index]["pkitem"]
								};
								NCMMPubUtil.queryVOByConditions(FINPRODINVO, condition, function(data) {
									if(data == null || data == "" | typeof(data) == 'undefined' || data.length < 1)
										return;
									var vos = eval(data);
									if(vos == null || vos.length < 1)
										return;
									NCMMPubUtil.deleteVO(FINPRODINVO, vos[0]);
								});
							}
							$js.hideLoadingBar();
							// 重新加载当前页面
							queryScanDataFromLocalDB();
							
							$toast("当前所选数据上传成功！")
						} else {
						$js.hideLoadingBar();
							$alert($jsonToString(data));
							return;
						}
					} else {
					$js.hideLoadingBar();
						$alert($jsonToString(data));
						return;
					}
				}
			})
		});
	}

	// 从本地数据库查询数据进行页面加载
	function queryDataFromLocalDB() {
		loadscanRecord();
		//NCMMPubUtil.queryVOByConditions(FINPRODINSCANVO, null, function(data) {
		//var json = {
		//	orders: eval(data)
		//};
		//$ctx.push(json);
		//});
		//NCMMPubUtil.notifyFilter("search0", "wlistviewdefine0", ["vbillcode", "cinvname", "nshouldinnum", "nshouldassistnum", "scansinglenum"]);
	}

	// 转换数据
	function changeVOTOBillInfos(vos) {
		if(vos == null || vos.length < 1) {
			return;
		}
		var bpks = [];
		var combinedvos = [];
		// 处理扫描数量，合并vo
		for(var i = 0; i < vos.length; i++) {
			// 来源id+批次号作为分单合并数量维度
			var matchpk = vos[i]["pkitem"] + vos[i]["vbatchcode"];
			if(bpks.indexOf(matchpk) == -1) {
				// 行id集合中不存在
				bpks.push(matchpk);
				//处理序列号
				if(NCMMPubUtil.isNotEmpty(vos[i].serialno) || NCMMPubUtil.isNotEmpty(vos[i].pk_rack)) {
					vos[i]["bbitems"] = [{
						"serialno": vos[i].serialno,
						"num": vos[i].scansinglenum,
						"clocationid":vos[i].pk_rack
					}];
				}
				combinedvos.push(vos[i]);

			} else {
				// 如果matchpk在集合中存在，则合并扫描数量
				var currentscanednum = vos[i]["scansinglenum"];
				for(var j = 0; j < combinedvos.length; j++) {
					var combinedpk = combinedvos[j]["pkitem"] + combinedvos[j]["vbatchcode"];
					if(matchpk == combinedpk) {
						//处理序列号
						var bbitems = combinedvos[j]["bbitems"];
						if(bbitems != null && ((vos[i].serialno != null && vos[i].serialno != "")||(vos[i].pk_rack != null && vos[i].pk_rack != ""))) {
							bbitems.push({
								"serialno": vos[i].serialno,
								"num": vos[i].scansinglenum,				
						        "clocationid":vos[i].pk_rack
							});
						}
						var scanednum = combinedvos[j]["scansinglenum"];
						combinedvos[j]["scansinglenum"] = NCMMPubUtil.getSumScanedNum(scanednum, currentscanednum);
						break;
					}
				}
			}
		}
		// 把合并的vo组装成billinfos的格式，用于提交数据
		var billinfos = createBillInfoForScanList(combinedvos);
		return billinfos;
	}

	// 用于上传创建billinfos
	function createBillInfoForScanList(vos) {
		var billinfos = [];
		var pkheads = [];
		// json的key为pkhead,value为items
		var headjson = {};
		var head = {};
		var item = {};
		// 相同的表头合并表体
		for(var i = 0; i < vos.length; i++) {
			var pk_head = vos[i]["pkhead"];
			if(pkheads.indexOf(pk_head) == -1) {
				pkheads.push(pk_head);
				head = getHeadForScanList(vos[i]);
				item = getItemForScanList(vos[i]);
				var items = [];
				items.push(item);
				headjson[pk_head] = items;
			} else {
				item = getItemForScanList(vos[i]);
				var items = headjson[pk_head];
				items.push(item);
				headjson[pk_head] = items;
			}
		}
		// 生成billinfos
		var pks = [];
		for(var j = 0; j < vos.length; j++) {
			var pk_head = vos[j]["pkhead"];
			var pkitems = headjson[pk_head];
			if(pks.indexOf(pk_head) == -1 && !NCMMPubUtil.isEmpty(pkitems)) {
				pks.push(pk_head);
				var head = getHeadForScanList(vos[j]);
				var billinfo = {
					"head": head,
					"items": pkitems
				};
				billinfo = {
					"billinfo": billinfo
				};
				billinfos.push(billinfo);
			}

		}
		return billinfos;
	}

	function getHeadForScanList(vo) {
		var json = {};
		json["pk_head"] = vo.pkhead;
		// json["ts_h"] = vo["hts"];
		json["storcode"] = vo.pk_stordoc;
		return json;
	}

	function getItemForScanList(vo) {
		var item = {};
		item["pk_item"] = vo.pkitem;
		item["pk_material"] = vo.pk_material;
		item["pk_measdoc"] = vo.castunitid;
		// item["ts_b"] = vo["bts"];
		item["vbatchcode"] = vo.vbatchcode;
		//支持序列号
		if(NCMMPubUtil.isNotEmpty(vo.bbitems)) {
			var bbitems = [];
			var bbitem = {};
			for(var i = 0; i < vo.bbitems.length; i++) {
				var bbitem = {};
				bbitem["bbitem"] = {
					"vserialcode": vo.bbitems[i].serialno,
					"nnum": vo.bbitems[i].num == "" ? "1.00000" : vo.bbitems[i].num,									
					"clocationid":vo.bbitems[i].clocationid
				};
				//bbitem["bbitem"]={"vserialcode":vo.serialno,"nnum":vo.scansinglenum == "" ? "1.00000" : vo.scansinglenum};
				bbitems.push(bbitem);
			}
			item["bbitems"] = bbitems;
		}
		//item["serialno"]=vo.serialno;
		item["nnum"] = vo.scansinglenum == "" ? "1.00000" : vo.scansinglenum;
		item = {
			"item": item
		};
		return item;
	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$checkbox0_onchange(sender, args) {
		// 全选逻辑
		$ctx.dataCollect();
		var ischecked = $id(sender).get("checked");
		var list = $ctx.getJSONArray("list");
		for(var i = 0; i < list.length; i++) {
			list[i]["ischecked"] = ischecked;
		}

		var json = {};
		json["list"] = list;
		json["isallchecked"] = ischecked;
		$ctx.push(json);

	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$button0_onclick(sender, args) {
		$view.close();

	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$checkbox1_onchange(sender, args) {
		// 单选逻辑
		$ctx.dataCollect();
		var ischecked = $id(sender).get("checked");
		var isallchecked = true;
		if(ischecked == false) {
			isallchecked = false;
		} else {
			var orders = $ctx.getJSONArray("list");
			for(var i = 0; i < orders.length; i++) {
				if(orders[i]["ischecked"] == null || orders[i]["ischecked"] == "false") {
					isallchecked = false;
					break;
				}
			}
		}

		var json = {};
		json["list"] = orders;
		json["isallchecked"] = isallchecked;
		$ctx.push(json);
	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$onitemclick(sender, args) {
		/*// 获取当前行内容
		 var row = $id("wlistviewdefine0").get("row");
		 row = $stringToJSON(row);
		 // 单击行跳转到详情页面
		 $view.open({
		 "viewid" : "com.yonyou.ncmm_pac_pda.FPInScanDetailPage",
		 "isKeep" : "true",
		 "row" : row
		 });
		 */
		//如果点击的是组列表，则不弹出浮动按钮组
		var row = {};
		row = $id("wlistviewdefine0").get("row");
		row = $stringToJSON(row);
		if(row && row["row"])
			return;
		$view.openPop(popDialogInfoForScan);
	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$selectdata(sender, args) {
		// 按照查询条件进行快速查询
		NCMMPubUtil.quickFilter();

	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$onclick_Detail(sender, args) {
		// 详情
		$view.closePop(popDialogInfoForScan);
		// 获取当前行内容
		var row = $id("wlistviewdefine0").get("row");
		// 单击行跳转到详情页面
		$view.open({
			"viewid": "com.yonyou.ncmm_pac_pda.FPInScanDetailPage",
			"isKeep": "true",
			"row": row
		});

	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$onclick_Modify(sender, args) {
		// 修改
		$view.closePop(popDialogInfoForScan);
		if($confirm("确认要修改当前行数据么？")) {
			var row = $id("wlistviewdefine0").get("row");
			$view.open({
				viewid: "com.yonyou.ncmm_pac_pda.FPInScanPage",
				isKeep: "true",
				"row": row
			})
		}
	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$onclick_Delete(sender, args) {
		// 删除
		$view.closePop(popDialogInfoForScan);
		if($confirm("确认删除所选记录吗？")) {
			var row = $id("wlistviewdefine0").get("row");
			deleteRow($stringToJSON(row));
		}
	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$onclick_Cancel(sender, args) {
		// 取消
		$view.closePop(popDialogInfoForScan);
	}

	function com$yonyou$ncmm_pac_pda$FPInScanListPageController$onRestartPage(sender, args) {
		// onloadControlForScanlist();
		var json = {};
		if($cache.read("isfinprodincreated") == "true") {
			//var condition = "order by vbillcode , rowno";
			//NCMMPubUtil.queryVO(FINPRODINSCANVO, condition, function(data) {
			//	if(data == null || data == "" || data.length == 0) {
			//		return;
			//	}
			//	json = {
			//		list: eval(data)
			//	}
			//});
			loadscanRecord();
		}
		//处理精度
		//var numkeys = new Array("scansinglenum");
		//FINPRODINUtil.processScale(json.list, numkeys, "pk_measdoc");
		//$ctx.push(json);
		//NCMMPubUtil.notifyFilter("search0", "wlistviewdefine0", ["vbillcode", "cinvname", "scansinglenum", "nshouldinnum", "nshouldassistnum"]);

	}

	function ongroupclick(sender, args) {
		$ctx.dataCollect();
		var isCheckedAll = true;

		var sourceData = $ctx.getJSONArray("source");
		for(var i = 0; i < sourceData.length; i++) {
			if(sourceData[i]["isgroupchecked"] == null || sourceData[i]["isgroupchecked"] == false || sourceData[i]["isgroupchecked"] == "false") {
				isCheckedAll = false;
				for(var j = 0; j < (sourceData[i]["row"]).length; j++) {
					((sourceData[i]["row"])[j])["ischecked"] = false;
				}
			} else {
				for(var j = 0; j < (sourceData[i]["row"]).length; j++) {
					((sourceData[i]["row"])[j])["ischecked"] = true;
				}
			}
		}
		$ctx.put("isAllChecked", isCheckedAll); //更新全选复选框的界面显示
		$ctx.put("source", sourceData);
		$ctx.dataBind();

	}

	function onallcheckclick(sender, args) {
		$ctx.dataCollect();
		var isChecked = $id(sender).get("checked");
		var sourceData = $ctx.getJSONArray("source");
		for(var i = 0; i < sourceData.length; i++) {
			sourceData[i]["isgroupchecked"] = isChecked;

			for(var j = 0; j < (sourceData[i]["row"]).length; j++) {
				((sourceData[i]["row"])[j])["ischecked"] = isChecked;
			}
		}
		$ctx.put("source", sourceData);
		$ctx.dataBind();
	}

	function onloadlistviewdefine0(sender, args) {
		loadscanRecord();

	}
	//从本地表获取所有材料出库扫描记录并显示
	function loadscanRecord() {
		var sql = getAllTableQuerySql();
		var scangroup = getVOsBySql(sql);
		var numkeys = new Array("scansinglenum");
		//处理精度
		FINPRODINUtil.processGroupScale(scangroup, numkeys, "pk_measdoc");
		//显示
		$ctx.push({
			"source": scangroup
		});
	}
	//返回全表查询sql，用单据号+行号 排序
	function getAllTableQuerySql() {
		var sql = "SELECT " +
			FINPRODINSCANVO.VBILLCODE.name + ", " + FINPRODINSCANVO.ROWNO.name + ", " +
			FINPRODINSCANVO.CINVCODE.name + ", " + FINPRODINSCANVO.CINVNAME.name + ", sum(scansinglenum) as scansumnum" +
			" FROM " + FINPRODINSCANVO.prototype.getTableName() +
			" group by " + FINPRODINSCANVO.VBILLCODE.name + ", " + FINPRODINSCANVO.ROWNO.name + ", " + FINPRODINSCANVO.CINVCODE.name + ", " + FINPRODINSCANVO.CINVNAME.name;

		return sql;
	}

	function getVOsBySql(sql) {
		NCMMPubUtil.createTableWithAutoPK(FINPRODINSCANVO);
		var data = NCMMPubUtil.queryBySQL(sql);
		data = eval(data);
		//处理特殊字符
		data = NCMMPubUtil.htmlspecialjsonarray2UI(data);
		for(var i = 0; i < data.length; i++) {
			var vbillcode = data[i][FINPRODINSCANVO.VBILLCODE.name];
			var rowno = data[i][FINPRODINSCANVO.ROWNO.name];
			var wheresql = "where " + FINPRODINSCANVO.VBILLCODE.name + "= '" + vbillcode + "' and " + FINPRODINSCANVO.ROWNO.name + "= '" + rowno + "'";
			NCMMPubUtil.queryVO(FINPRODINSCANVO, wheresql, function(subdata) {
				subdata = eval(subdata);
				//处理特殊字符
				subdata = NCMMPubUtil.htmlspecialjsonarray2UI(subdata);
				data[i]["row"] = subdata;
			});

		}

		return data;

	}

	function onitemclick(sender, args) {

	}

	function oncheckclick(sender, args) {

	}
	com.yonyou.ncmm_pac_pda.FPInScanListPageController.prototype = {
		onRestartPage: com$yonyou$ncmm_pac_pda$FPInScanListPageController$onRestartPage,
		onclick_Cancel: com$yonyou$ncmm_pac_pda$FPInScanListPageController$onclick_Cancel,
		onclick_Delete: com$yonyou$ncmm_pac_pda$FPInScanListPageController$onclick_Delete,
		onclick_Modify: com$yonyou$ncmm_pac_pda$FPInScanListPageController$onclick_Modify,
		onclick_Detail: com$yonyou$ncmm_pac_pda$FPInScanListPageController$onclick_Detail,
		selectdata: com$yonyou$ncmm_pac_pda$FPInScanListPageController$selectdata,
		onitemclick: com$yonyou$ncmm_pac_pda$FPInScanListPageController$onitemclick,
		checkbox1_onchange: com$yonyou$ncmm_pac_pda$FPInScanListPageController$checkbox1_onchange,
		button0_onclick: com$yonyou$ncmm_pac_pda$FPInScanListPageController$button0_onclick,
		checkbox0_onchange: com$yonyou$ncmm_pac_pda$FPInScanListPageController$checkbox0_onchange,
		button2_onclick: com$yonyou$ncmm_pac_pda$FPInScanListPageController$button2_onclick,
		onload: com$yonyou$ncmm_pac_pda$FPInScanListPageController$onload,
		imagebutton0_onclick: com$yonyou$ncmm_pac_pda$FPInScanListPageController$imagebutton0_onclick,
		initialize: com$yonyou$ncmm_pac_pda$FPInScanListPageController$initialize,
		evaljs: com$yonyou$ncmm_pac_pda$FPInScanListPageController$evaljs
	};
	com.yonyou.ncmm_pac_pda.FPInScanListPageController.registerClass('com.yonyou.ncmm_pac_pda.FPInScanListPageController', UMP.UI.Mvc.Controller);
} catch(e) {
	$e(e);
}